Skip to content

[WIP][Agent] Uptake new table for Agent Task Consumption and Agent Eval Credit limit fixes#7365

Draft
qutreson wants to merge 4 commits intomainfrom
private/qutreson/ConsumptionPerAgent
Draft

[WIP][Agent] Uptake new table for Agent Task Consumption and Agent Eval Credit limit fixes#7365
qutreson wants to merge 4 commits intomainfrom
private/qutreson/ConsumptionPerAgent

Conversation

@qutreson
Copy link
Copy Markdown
Contributor

@qutreson qutreson commented Mar 25, 2026

Summary

Changes in System Application:

  • Remove copilot credit related utilities from Agent Task codeunit in favor of new Agent Task Consumption codeunit.
  • Change the source table of the Agent Consumption Overview table to use a table using per-row filtering. This ensures that users can only see data related to the agent they have access to, allowing to show consumption data to more users.
  • The Agent Consumption Overview's opening logic has been to update to error if the page is opened for a specific agent or task that the user does not have access to.
  • The Agent Consumption Overview page includes a notification for users which are not agent admins to let them know they are seeing only the consumption of agents they have access to.

Changes in AI Test Toolkit:

  • Expose copilot credits consumed to all users, including the ones that are not agent admins.
  • Add ability to see the Agent Consumption Overview from AI Test Suites, Lines, History, etc.
  • Make Monthly Copilot Credits overview editable only by Agent Admins.
  • Fix the monthly credit limits to be per company, because permission roles are per company.
  • Add event for setting up default credit limit record when new companies are created.

Work Item(s)

Fixes AB#625710

Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AL Documentation Audit

Documentation gaps were detected in the following apps:

  • Agent: 0% documentation coverage

To generate documentation, run /al-docs init or /al-docs update using GitHub Copilot CLI or Claude Code.
This review is for awareness to help keep documentation in sync with code changes. It is okay to dismiss this request.

nikolakukrika
nikolakukrika previously approved these changes Mar 25, 2026
@qutreson qutreson changed the title [WIP][Agent] Uptake new table for Agent Task Consumption [WIP][Agent] Uptake new table for Agent Task Consumption and Agent Eval Credit limit fixes Mar 27, 2026
AgentTaskNameTxt: Label 'Task #%1 - %2', Comment = '%1 - ID of the agent task, %2 - Title of the agent task';
YourNotAuthorizedToViewMonetizationDataErr: Label 'You are missing the required permissions to view monetization data.';
TheEndDateIsTodayMsg: Label 'The end date is already set to today. You cannot move the date range filter further.';
NonAdminDisclaimerMsg: Label 'You''re seeing consumption for agents you have access to. For complete data, ask an Agent-Admin.';
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants